//
//  VVYPayManager.h
//  viviyoo
//
//  Created by viviyoo on 15/12/10.
//  Copyright © 2015年 viviyoo. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum : NSUInteger {
    PayTypeUPPay = 0,
    PayTypeWeixinPay,
    PayTypeAlipay
} PayType;

typedef void(^payBlock)();
typedef void(^PayFailureBlock)(NSString *error);

@interface VVYPayManager : NSObject 

+ (instancetype)sharedManager;

- (void)payWithOrderNum:(NSString *)orderNum price:(NSString *)price andPayType:(PayType) type success:(payBlock) success failure:(PayFailureBlock) failure;

- (void)handleUPPayCallBackInfoCode:(NSString *)code data:(NSDictionary *)data;

@end
